package com.boot.project.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class InfoDo implements Serializable {
    private Long id;
    // 资讯标题
    private String title;
    // 资讯内容
    private String content;
    // 资讯图片的url
    private String imageSrc;
    // 发布时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createdTime;
    // 评论数
    private Long comments;
    // 资讯的开始时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    // 资讯的结束时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    // 资讯的分类，1是首页轮播，2是订场轮播，3是少儿轮播，4是首页资讯，5是少儿资讯
    private Integer infoType;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImageSrc() {
        return imageSrc;
    }

    public void setImageSrc(String url) {
        this.imageSrc = url;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Long getComments() {
        return comments;
    }

    public void setComments(Long comments) {
        this.comments = comments;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getInfoType() {
        return infoType;
    }

    public void setInfoType(Integer infoType) {
        this.infoType = infoType;
    }
}
